#include <stdio.h>

void print(int a);

int main(void)
{
    void (*func_pointer)(int) = &print;
    (*func_pointer)(1); // 等同于下面的
    func_pointer(1);

    func_pointer = print; // 等同于&print
    (*func_pointer)(2);   // 等同于下面的
    func_pointer(2);

    printf("%d\n", print == &print);
}

void print(int a)
{
    printf("%d\n", a);
}